fdc78459204d1e7008bfbd2672749540d43cf225,impl/src/main/java/org/glassfish/soteria/identitystores/LDapIdentityStore.java,LDapIdentityStore,checkDirectBinding,#UsernamePasswordCredential#CallerPrincipal#,179
Before Change
);
if (ldapContext != null) {
String caller = usernamePasswordCredential.getCaller();
// User authenticated (in the direct bind method, we always have to check the credentials.
if (validationType == ValidationType.AUTHENTICATION || validationType == ValidationType.BOTH) {
After Change
closeContext(ldapContext);
return new CredentialValidationResult(
VALID,
new CallerPrincipal(usernamePasswordCredential.getCaller()),
groups
);
}
private void closeContext(LdapContext ldapContext) {